package com.zzyweb.rentalcarsys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.context.annotation.Primary;

import java.util.List;

/**
 * @author zhiyi
 * @date 10/9/25
 **/
@Data
@TableName("menu")
public class Menu {
    @TableId(type = IdType.AUTO)
    private Integer menuId;
    private Integer parentId;
    private String menuName;
    private String route;
    @TableField(exist = false)
    private List<Menu> children;
}
